package com.smartcruise.data;

import java.io.Serializable;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Created by FengChaoQun
 * on 2018/3/12 0012
 */

public class PushData extends RealmObject implements Serializable {

    public final static String TYPE_NEW_TASK = "新建巡护任务";
    public final static String TYPE_TASK_AUDIT_RESULT = "巡护任务审核结果";
    public final static String TYPE_REPORT_AUDIT_RESULT = "事件通报审核结果";
    public final static String TYPE_DEVICE_LOGIN = "终端设备上线";
    public final static String TYPE_REVOKE_TASK = "撤销巡护任务";

    @PrimaryKey
    private String id;                  //推送的id
    private String relatedId;           //相关业务记录的id
    private String type;                //推送类型
    private String content;             //展示给用户的内容
    private String userId;              //用户id
    private long createTime;
    private boolean unRead;                     //标志是否没有阅读过 默认已经阅读过

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRelatedId() {
        return relatedId;
    }

    public void setRelatedId(String relatedId) {
        this.relatedId = relatedId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public boolean isUnRead() {
        return unRead;
    }

    public void setUnRead(boolean unRead) {
        this.unRead = unRead;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }
}
